package AtomicDemo.AtomicIntegerFieldUpdaterDemo;

/**
 * @Author: ylc
 * @Description:
 * @Date Created in 2022-05-14 15:52
 */
public class User {
    int id;
    volatile int age;

    public User(int id, int age) {
        this.id = id;
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", age=" + age +
                '}';
    }
}
